﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Client
{
    public class TransModel
    {
        public byte type;   //类型
        public int area;    //模块
        public int command; //命令
        public object message;  //消息

        public TransModel() { }

        public TransModel(byte t,int a,int c,object m=null) {
            type = t;       
            area = a;
            command = c;
            message = m;
        }

        public T GetMessage<T>() {
            return (T)message;
        }
    }
}
